<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div {
            width: 300px;
            height: 300px;
            background-color: pink;
            /*边框*/
            border: 2px solid red;
            /*    padding 内边距*/
            padding: 20px;
            /*    margin 外边距*/
            margin: 100px;
        }
    </style>
</head>
<body>
<div>内容电脑</div>
<div>内容电脑</div>
</body>
</html>